package com.lenovo.testreport.online.web.smoke.mapper;

import com.lenovo.testreport.online.web.smoke.model.OnlineWebSmokeReport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author CJF
 * @date 2018/10
 * <p>
 * Mybatis逆向工程，自动生成。
 */
@Mapper
public interface OnlineWebSmokeReportMapper {

    int deleteByPrimaryKey(@Param("tablename") String tablename, Integer rid);

    int insert(@Param("tablename") String tablename, OnlineWebSmokeReport record);

    int insertSelective(@Param("tablename") String tablename, OnlineWebSmokeReport record);

    OnlineWebSmokeReport selectByPrimaryKey(@Param("tablename") String tablename, Integer rid);

    int updateByPrimaryKeySelective(@Param("tablename") String tablename, OnlineWebSmokeReport record);

    int updateByPrimaryKey(@Param("tablename") String tablename, OnlineWebSmokeReport record);

    List<OnlineWebSmokeReport> selectAllReport(@Param("tablename") String tablename);

    List<OnlineWebSmokeReport> selectByType(@Param("tablename") String tablename, String type);

    int selectMaxId(@Param("tablename") String tablename);

    List<OnlineWebSmokeReport> selectAllReportByTime(@Param("tablename") String tablename, String start, String end, String version);

    List<String> selectAllVersion(@Param("tablename") String tablename);
}